//包的入口文件
import Vue from 'vue'
import login from './login.vue'
//导入mint-ui的样式文件
import 'mint-ui/lib/style.css'
//导入mui样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

import VueRouter from 'vue-router'
import router from './router.js'
Vue.use(VueRouter)

import VueResource from 'vue-resource'
Vue.use(VueResource)



//按需导入mint-ui的组件
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name,Swipe)
Vue.component(SwipeItem.name,SwipeItem)

var vm = new Vue({
    el:'#app',
    render: c=> c(login),
    router
    // components: { login }
})